package cn.jiyun.controller;


import cn.jiyun.common.config.Result;
import cn.jiyun.entity.XmAdvertisements;
import cn.jiyun.entity.XmFeedback;
import cn.jiyun.service.IXmAdvertisementsService;
import cn.jiyun.service.IXmFeedbackService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-11-27
 */
@RestController
@RequestMapping("/xm-platform/xm-feedback")
public class XmFeedbackController {

    @Autowired
    private IXmFeedbackService xmFeedbackService;

    @RequestMapping("/findPage")
    public Result findPage(Integer pageNum, Integer pageSize, @RequestBody XmFeedback xmFeedback){
        Page page = xmFeedbackService.findPage(pageNum,pageSize,xmFeedback);
        return Result.ok(page);
    }

}
